package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="THR_UserArchivesRecord", catalog="Id")
public class ThrUserArchivesRecord extends BaseEntity<ThrUserArchivesRecord> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="RecordTime", nameJava="recordTime", typeDataBase="datetime")
	private Date recordTime;
	@YsField(nameDataBase="RecordType", nameJava="recordType", typeDataBase="tinyint")
	private Integer recordType;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="text")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ThrUserArchivesRecord setId(Long id) {
		this.id = id;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public ThrUserArchivesRecord setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Date getRecordTime() {
		return recordTime;
	}
	public ThrUserArchivesRecord setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
		return this;
	}
	public Integer getRecordType() {
		return recordType;
	}
	public ThrUserArchivesRecord setRecordType(Integer recordType) {
		this.recordType = recordType;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public ThrUserArchivesRecord setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ThrUserArchivesRecord setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ThrUserArchivesRecord setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ThrUserArchivesRecord setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ThrUserArchivesRecord thrUserArchivesRecord(
		String userId,
		Date recordTime,
		Integer recordType,
		String remark,
		Integer status
			) {
		ThrUserArchivesRecord entity = new ThrUserArchivesRecord();
		entity.setUserId(userId);
		entity.setRecordTime(recordTime);
		entity.setRecordType(recordType);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}